package ar.com.digitalbricks.core.impl;

import org.springframework.beans.factory.annotation.Configurable;

import ar.com.digitalbricks.core.TipoMenuItem;
import ar.com.digitalbricks.core.dao.impl.TipoMenuItemDAOImpl;
import ar.com.digitalbricks.fwk.impl.PersistentEntityAbstract;

@Configurable("tipoMenuItem")
public class TipoMenuItemImpl extends PersistentEntityAbstract implements TipoMenuItem {
	public TipoMenuItemDAOImpl tipoMenuItemDAO;
	
	public TipoMenuItemDAOImpl getTipoMenuItemDAO() {
		return this.tipoMenuItemDAO;
	}

	public void setTipoMenuItemDAO(TipoMenuItemDAOImpl tipoMenuItemDAO) {
		this.tipoMenuItemDAO = tipoMenuItemDAO;
	}

	@Override
	public void delete() {
		this.getTipoMenuItemDAO().delete(this);
	}

	@Override
	public void save() {
		this.getTipoMenuItemDAO().save(this);
	}
}